package com.ithanwen.controller;

import com.ithanwen.pojo.Result;
import com.ithanwen.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created By tony
 * <br/>Date: 2025/7/14 14:40
 * <br/>Description:
 */
@RestController
public class ReportController {
    @Autowired
    private ReportService reportService;
    @RequestMapping(value = "/report/empJobData", method = RequestMethod.GET)
    public Result getEmpJobData(){
        return Result.success(reportService.getEmpJobData());
    }

    @RequestMapping(value = "/report/empGenderData",method = RequestMethod.GET)
    public Result getGenderData(){
        return Result.success(reportService.getGenderData());
    }

    @RequestMapping(value = "/report/studentDegreeData" ,method = RequestMethod.GET)
    public Result getStudentDegreeData(){
        return Result.success(reportService.getStudentDegreeData());
    }
    @RequestMapping(value = "/report/studentCountData" ,method = RequestMethod.GET)
    public Result getStudentCountData(){
        return Result.success(reportService.getClazzCountOption());
    }
}
